package com.huatai.datacenter.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.huatai.datacenter.entity.WordRequestLogEntity;
import com.huatai.datacenter.mapper.WordRequestLogMapper;
import com.huatai.datacenter.service.WordRequestLogService;
import org.springframework.stereotype.Service;

/**
 * packageName com.huatai.datacenter.service.impl
 *
 * @author gaowengui
 * @version JDK 8
 * @className WordRequestLogServiceImpl
 * @date 2025/7/1
 * @description TODO
 */
@Service
public class WordRequestLogServiceImpl extends ServiceImpl<WordRequestLogMapper, WordRequestLogEntity> implements WordRequestLogService {

    @Override
    public Page<WordRequestLogEntity> page(Page<WordRequestLogEntity> page) {
        QueryWrapper<WordRequestLogEntity> queryWrapper = new QueryWrapper<>();
//        queryWrapper.eq("requestLogId");
        queryWrapper.orderByDesc("createTime");
        return page(page, queryWrapper);
    }
}
